package com.wxsh.english;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.wxsh.entity.VocTb;
import com.wxsh.service.VocTbService;

public class WordPhoneticTest {

	private static ApplicationContext context;
	private static VocTbService vocTbService;

	static {
		context = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml");
		vocTbService = (VocTbService) context.getBean("vocTbServiceImpl");
	}

	public static void main(String[] args) throws Exception {
		List<VocTb> vocTbs = vocTbService.findByWord("fashioned");
		System.out.println(vocTbs);
	}

}